import request from '@/utils/request'

export function configInfoQuery(paramDataInfo) {
    return request({
        url: '/ywu/config/center/config.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function addConfigInfoQuery(paramDataInfo) {
    return request({
        url: '/ywu/config/center/config.add.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function updateConfigInfoQuery(paramDataInfo) {
    return request({
        url: '/ywu/config/center/config.update.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function deleteConfigInfoQuery(paramDataInfo) {
    return request({
        url: '/ywu/config/center/config.delete.info',
        method: 'post',
        data: paramDataInfo
    })
}

export function refreshConfigInfo(paramDataInfo) {
    return request({
        url: `/ywu/config/refresh.config.info/${paramDataInfo.application}`,
        method: 'post'
    })
}